import { Module } from '@nestjs/common';
import { AboutService } from './account.service';
import { AboutController } from './account.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { adminAccount } from '../../entities/adminAccount.entity';
import { JwtModule } from '@nestjs/jwt';
import { JwtStrategy } from 'src/global/strategy/jwt.strategy';

const jwtConfig = JwtModule.register({
  secret: 'suibianshenme',
  signOptions: { expiresIn: '4h' },
});
@Module({
  imports: [TypeOrmModule.forFeature([adminAccount]), jwtConfig],
  controllers: [AboutController],
  providers: [AboutService, JwtStrategy],
  exports: [jwtConfig],
})
export class AccountModule {}
